﻿Public Class DevanagariKeyboard
    Inherits System.Windows.Forms.TextBox
    Private EscapeFlag As Boolean   ' Set when user presses the back slash \
    Private mTypingStyle As String
    Private LastCh As String

    Protected Overrides Function ProcessKeyMessage(ByRef m As System.Windows.Forms.Message) As Boolean
        ' Get out if this is not a KeyUp message
        If m.Msg <> 258 Then Return False
        Const Delay As Integer = 100
        ' Obtain the Keystroke character
        Dim KeyChar As Integer = m.WParam.ToInt32

        Return True
    End Function
End Class
